{include file="public/common" /}

<div>
    <form class="layui-form" id="order_form">

        <div class="layui-form-item" style="margin-top: 10px">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <select name="status" lay-filter="examine_cash">
                        <option value="" style="font-size:15px;"{if condition="isset($param['status']) && $param['status']==''"}selected{/if}>审核状态</option>
                        <option value="0" style="font-size:15px;" {if condition="isset($param['status']) && $param['status']=='0'"}selected{/if}>未审核</option>
                        <option value="1" style="font-size:15px;" {if condition="isset($param['status']) && $param['status']=='1'"}selected{/if}>审核通过</option>
                        <option value="2" style="font-size:15px;" {if condition="isset($param['status']) && $param['status']=='2'"}selected{/if}>未通过</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" name="search_" value="<?php echo isset($param['search_'])?$param['search_']:''?>" autocomplete="off" class="layui-input" placeholder="搜索用户名称/手机号">
                </div>
            </div>
            <div class="layui-inline">
                <button type="submit" class="layui-btn" >筛选</button>
            </div>
        </div>
    </form>
    <table class="layui-table" width="900px">
        <thead>
        <tr style="text-align: center;">
            <td>id</td>
            <td>用户</td>
            <td>用户电话</td>
            <td>提现金额</td>
            <td>申请时间</td>
            <td>是否审核</td>
            <td>用户备注</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
        {volist name="list_" id="item"}
        <tr style="text-align: center;">
            <td> {$item.id}</td>
            <td> {$item.user_name}</td>
            <td> {$item.telephone}</td>
            <td> {$item.value}</td>
            <td> {$item.created_time}</td>
            <td> {if condition="$item.status == 0"}未审核{elseif condition="$item.status==1"}已审核{elseif condition="$item.status==2"}审核不通过{else}未知{/if}</td>
            <td> {$item.apply_memo}</td>
            <td> <button class="layui-btn layui-btn-small {if condition="$item.status == 1"}layui-btn-disabled {/if}" onclick="model('/addons/execute/admin-finance-examine_cash_view?id={$item.id}')">审核</button></td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {$list_->render()}
</div>
<script>
    $(function () {
        layui.use(['form', 'layedit', 'laydate'], function ()
        {
            var form = layui.form()
                    , layer = layui.layer
                    , layedit = layui.layedit
                    , laydate = layui.laydate;
        });
    });
</script>
